package com.example.supplychainbackend.service;

import com.example.supplychainbackend.controller.dto.enterprise.CertApplyProgressDto;
import com.example.supplychainbackend.controller.dto.enterprise.EnterpriseCertDto;
import com.example.supplychainbackend.controller.dto.enterprise.EnterpriseDto;
import org.springframework.core.io.Resource;
import org.springframework.http.MediaType;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface FileService {
    String storeFile(MultipartFile file) throws IOException;

    boolean deleteFileByUrl(String fileUrl) throws IOException;

    Resource loadFileAsResource(String fileUrl) throws IOException;

    MediaType getMediaType(String fileUrl);
}
